package com.erb.mapper;

import com.erb.entity.Pager;
import com.erb.entity.Type;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TypeMapper {
	List<Type> selectAll(@Param("pager") Pager pager);

	long insertType(@Param("type") Type type);

	Type selectTypeById(long id);

	long deleteType(long id);

	long updateType(@Param("type") Type type);

	Type selectTypeByEqName(@Param("typeName") String typeName);

	long selectCount();
}
